<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}"/>
    <title>${this.vehicle?.opportunity?.serialNumber}信息</title>
    <asset:stylesheet src="homer/vendor/blueimp-gallery/css/blueimp-gallery.min.css"/>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>贷款管理系统</li>
                    <li>
                        <g:link controller="opportunity" action="show"
                                id="${this.vehicle?.opportunity?.id}">押品信息详情</g:link>
                    </li>
                    <li class="active">
                        <span>车辆基本信息</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">
                订单号
            </h2>
            <small>
                <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
                ${this.vehicle?.opportunity?.serialNumber}
            </small>
        </div>
    </div>
</div>

<div class="content animate-panel form-horizontal">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                <div class="panel-tools">
                <g:link class="btn btn-info btn-xs" action="edit"
                        resource="${this.vehicle}"><i class="fa fa-edit"></i>编辑</g:link>
                </div>
                车辆基本信息
            </div>

            <div class="panel-body">

                <g:if test="${flash.message}">
                    <div class="message" role="status">${flash.message}</div>
                </g:if>
                <g:hasErrors bean="${this.vehicle}">
                    <ul class="errors" role="alert">
                        <g:eachError bean="${this.vehicle}" var="error">
                            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                                    error="${error}"/></li>
                        </g:eachError>
                    </ul>
                </g:hasErrors>
                <div class="form-group">

                    <label class="col-md-2 control-label">订单号</label>

                    <div class="col-md-3">
                        <input class="form-control" name="opportunity.id" type="hidden"
                               value="${this.vehicle?.opportunity?.id}">
                        <input class="form-control" disabled="disabled"
                               type="text" value="${this.vehicle?.opportunity?.serialNumber}">
                    </div>
                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">车辆品牌</label>

                    <div class="col-md-3">
                        <input class="form-control"  disabled="disabled" type="text"
                               value="${this.vehicle?.vehicleBrand}"/>
                    </div>
                    <label class="col-md-2 control-label">车辆名称</label>

                    <div class="col-md-3">
                        <input class="form-control" disabled="disabled"
                               type="text" value="${this.vehicle?.projectName}">
                    </div>

                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">车辆类型</label>

                    <div class="col-md-3">
                        <g:select class="form-control" name="subtype" id="subtype" optionKey="id" disabled="disabled"
                                  optionValue="name"
                                  from="${com.next.VehicleSubtype.list()}"
                                  value="${this.vehicle?.subtype?.id}"/>
                    </div>
                    <label class="col-md-2 control-label">出厂年份</label>

                    <div class="col-md-3">
                        <g:datePicker name="buildTime" default="none" noSelection="['': '---请选择---']"  disabled="disabled"
                                      value="${this.vehicle?.buildTime}" precision="year"/>
                    </div>

                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">购车合同号</label>

                    <div class="col-md-3">
                        <input class="form-control" name="propertySerialNumber"  disabled="disabled"
                               type="text" value="${this.vehicle?.propertySerialNumber}">
                    </div>
                    <label class="col-md-2 control-label">是否分期购买</label>

                    <div class="col-md-3">
                        <div class="input-group">
                            <g:select class="form-control" name="purchaseState" noSelection="${['': '请选择']}"  disabled="disabled"
                                      from="${["是","否"]}"
                                      value="${this.vehicle?.purchaseState}"/>
                        </div>

                    </div>

                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">购买用途</label>

                    <div class="col-md-3">
                        <input class="form-control"  disabled="disabled"
                               type="text" value="${this.vehicle?.purpose}">
                    </div>
                    <label class="col-md-2 control-label">买入日期</label>

                    <div class="col-md-3">
                        <g:datePicker name="purchaseDate" default="none" noSelection="['': '---请选择---']"     disabled="disabled"
                                      value="${this.vehicle?.purchaseDate}" precision="day"/>
                    </div>

                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">车辆发动机号</label>

                    <div class="col-md-3">
                        <input class="form-control" disabled="disabled"
                               type="text" value="${this.vehicle?.engineCode}">
                    </div>
                    <label class="col-md-2 control-label">车架号</label>

                    <div class="col-md-3">
                        <input class="form-control"  disabled="disabled"
                               type="text" value="${this.vehicle?.carframeCode}">
                    </div>

                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">车牌号</label>

                    <div class="col-md-3">
                        <input class="form-control" disabled="disabled"
                               type="text" value="${this.vehicle?.vehicleLicense}">
                    </div>
                    <label class="col-md-2 control-label">登记人</label>

                    <div class="col-md-3">
                        <input class="form-control"  disabled="disabled"
                               type="text" value="${this.vehicle?.registerUser}">
                    </div>

                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">登记单位</label>

                    <div class="col-md-3">
                        <input class="form-control"  disabled="disabled"
                               type="text" value="${this.vehicle?.registerAccount}">
                    </div>
                    <label class="col-md-2 control-label">统计截止日期</label>

                    <div class="col-md-3">
                        <g:datePicker name="endTime" default="none" noSelection="['': '---请选择---']"         disabled="disabled"
                                      value="${this.vehicle?.endTime}" precision="day"/>
                    </div>

                </div>

                <div class="hr-line-dashed"></div>

                <div class="form-group">
                    <label class="col-md-2 control-label">统计开始日期</label>

                    <div class="col-md-3">

                        <g:datePicker name="startTime" default="none" noSelection="['': '---请选择---']"     disabled="disabled"
                                      value="${this.vehicle?.startTime}" precision="day"/>
                    </div>
                </div>

                <div class="hr-line-dashed"></div>

            </div>
        </div>
    </div>

</div>
</body>
</html>
